package com.ztao.controller;

import com.heima.model.common.behavior.LikesBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import com.ztao.service.ApLikesBehaviorService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@RestController
@RequestMapping("/api/v1")
public class ApLikesBehaviorController {
    @Resource
    private ApLikesBehaviorService apLikesBehaviorService;
    /**
     * 点赞
     * @param dto
     * @return
     */
    @PostMapping("/likes_behavior")
    public ResponseResult like(@RequestBody LikesBehaviorDto dto) {
        return apLikesBehaviorService.like(dto);
    }

}
